<template>
    <div class="page-cart">
		<div>
            <CartHeader />
        </div>
        <div class="bgc8 pt38 pb38">
            <div class="my-container bgc11">
                <m-cart :data-arr="dataArr" />
            </div>
        </div>
        <div>
            <my-footer />
        </div>
		
    </div>
</template>

<script>
import CartHeader from 'components/cart/CartHeader'
import mCart from 'components/cart/cart-table'
import myFooter from 'components/layout-default/my-footer/my-footer'
import { myTools } from 'assets/MyTools/Tools'

export default {
    components: {
        CartHeader,
        mCart,
        myFooter
    },
    layout: 'blank',
    data: function () {
        return {
            dataArr: [] // 数据
        }
    },
    beforeMount() { // 数据
        this.dataArr = myTools.getSession('cart')
    }
}
</script>

<style lang="stylus">
.page-cart
  @media screen and (max-width: 1228px)
    width: 1228px
</style>
